﻿<%@ Page Title="" Language="C#" MasterPageFile="~/edit/Admin.Master" AutoEventWireup="true" CodeBehind="TemplateList.aspx.cs" Inherits="ChgDoc.Edit.TemplateList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pageContent" runat="server">

<div class="formStyle">
	<asp:datagrid id="grdList" runat="server" autogeneratecolumns=false OnItemCommand="grdList_ItemCommand"  CssClass="grid" >
	<HeaderStyle CssClass="gridHeader" />
	<columns>
		<asp:BoundColumn DataField="Id" visible="false" readonly="true" />
        <asp:TemplateColumn HeaderText="Title">
            <ItemTemplate>
                <asp:LinkButton ID="LinkButton1" CommandName="Edit" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>' />
            </ItemTemplate>
        </asp:TemplateColumn>
		<asp:ButtonColumn ButtonType="Linkbutton" CommandName="Delete" Text="Delete" />
	</columns>
	</asp:datagrid>
        <br />
    <a href="TemplateEdit.aspx?returnurl=Templatelist.aspx" text="New template" Class="ui-state-default" style="margin:10px;">Add</a>
</div>

</asp:Content>
